import { Meta } from '@storybook/blocks';

import * as ClipRRectStories from '../stories/ClipRRect.stories';

<Meta of={ClipRRectStories} />

# ClipRRect

A widget that clips its child using a rounded rectangle.

## Example


```dart liveslice=ClipRRect

String _imageUrl = 'https://images.unsplash.com/photo-1565898835704-3d6be4a2c98c?fit=crop&w=200&q=60';

ClipRRect(
  borderRadius: BorderRadius.circular(50),
  child: SizedBox(
    width: 100,
    height: 100,
    child: Image.network(_imageUrl, fit: BoxFit.cover,),
  ),
)
```

## Related Links

- https://api.flutter.dev/flutter/widgets/ClipRRect-class.html
